package main

import "fmt"

func main() {
	var arr [5]string

	for k, v := range arr {
		fmt.Printf("k: %v, v: %v\n", k, v)
	}

	arr[0] = "ha"
	arr[1] = "hb"
	arr[2] = "hc"
	arr[3] = "hd"
	arr[4] = "he"

	for k, v := range arr {
		fmt.Printf("k: %v, v: %v\n", k, v)
	}

	//auto-infer
	arr = [...]string{"haha", "hbhb", "hchc", "hdhd", "hehe"}

	for k, v := range arr {
		fmt.Printf("k: %v, v: %v\n", k, v)
	}

	arr2 := [3]string{1: "very good"}
	for k, v := range arr2 {
		fmt.Printf("k: %v, v: %v\n", k, v)
	}
}
